package com.system.fkjslee.hos;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class AppointOrQuery extends AppCompatActivity implements View.OnClickListener {

    private Button btnAppoint;
    private Button btnQuery;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_appoint_or_query);

        initView();
    }

    private void initView() {
        btnAppoint = findViewById(R.id.btnAppoint);
        btnQuery = findViewById(R.id.btnQuery);

        btnAppoint.setOnClickListener(this);
        btnQuery.setOnClickListener(this);
    }

    public void onClick(View v) {
        switch(v.getId()) {
            case R.id.btnAppoint:
                startActivity(new Intent(this, AppointmentActivity.class));
                break;
            case R.id.btnQuery:
                startActivity(new Intent(this, QueryActivity.class));
                break;
        }
    }
}
